package com.artron.mediaartron.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-26.
 */

public class WeChatData implements Parcelable {


    /**
     * nonce_str : Zl9lTqsBVxOVZ6vu
     * appid : wx23a1f7f291ef4b3d
     * sign : 82CD71FBC4AF79EC0264041A0D63F5F5
     * trade_type : APP
     * return_msg : OK
     * result_code : SUCCESS
     * mch_id : 1296805201
     * return_code : SUCCESS
     * prepay_id : wx20170725120156568bb9d2700922932005
     */



    private String nonce_str;
    private String appid;
    private String sign;
    private String trade_type;
    private String return_msg;
    private String result_code;
    private String mch_id;
    private String return_code;
    private String prepay_id;

    private String alipayStr;
    /**
     * package : Sign=WXPay
     * secondSignature : 119C0C3E4B3F3A5837D5BDEB5D460399
     * timestamp : 1509343453
     */

    @SerializedName("package")
    private String packageX;
    private String secondSignature;
    private int timestamp;

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }

    public String getReturn_msg() {
        return return_msg;
    }

    public void setReturn_msg(String return_msg) {
        this.return_msg = return_msg;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getReturn_code() {
        return return_code;
    }

    public void setReturn_code(String return_code) {
        this.return_code = return_code;
    }

    public String getPrepay_id() {
        return prepay_id;
    }

    public void setPrepay_id(String prepay_id) {
        this.prepay_id = prepay_id;
    }

    public String getAlipayStr() {
        return alipayStr;
    }

    public void setAlipayStr(String alipayStr) {
        this.alipayStr = alipayStr;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.nonce_str);
        dest.writeString(this.appid);
        dest.writeString(this.sign);
        dest.writeString(this.trade_type);
        dest.writeString(this.return_msg);
        dest.writeString(this.result_code);
        dest.writeString(this.mch_id);
        dest.writeString(this.return_code);
        dest.writeString(this.prepay_id);
    }

    public WeChatData() {
    }

    protected WeChatData(Parcel in) {
        this.nonce_str = in.readString();
        this.appid = in.readString();
        this.sign = in.readString();
        this.trade_type = in.readString();
        this.return_msg = in.readString();
        this.result_code = in.readString();
        this.mch_id = in.readString();
        this.return_code = in.readString();
        this.prepay_id = in.readString();
    }

    public static final Creator<WeChatData> CREATOR = new Creator<WeChatData>() {
        @Override
        public WeChatData createFromParcel(Parcel source) {
            return new WeChatData(source);
        }

        @Override
        public WeChatData[] newArray(int size) {
            return new WeChatData[size];
        }
    };

    public String getPackageX() {
        return packageX;
    }

    public void setPackageX(String packageX) {
        this.packageX = packageX;
    }

    public String getSecondSignature() {
        return secondSignature;
    }

    public void setSecondSignature(String secondSignature) {
        this.secondSignature = secondSignature;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }
}
